package com.wangyg.flourfactory.outer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wangyg6 on 2019/5/22 9:56.
 */
@FeignClient(value = "flourfactory", serviceId = "flourfactory", path = "/flour_factory", fallbackFactory = ICallFlourFactoryFactory.class)
public interface ICallFlourFactory {
	@GetMapping("flourFactory")
	public Integer getFlourNum(@RequestParam("factId") Integer factId);
}